package day1212zy.day1209;

import cn.itcast.xml.XmlUtils;

import java.util.ArrayList;
import java.util.Collections;

public class demo1 {
    public static void main(String[] args) {
        ArrayList<Person> list = new ArrayList<>();
        Collections.addAll(list,
                new Person("小明",18,99.9,false),
                new Person("小朱",19,99.9,false),
                new Person("小李",20,99.9,false));
        System.out.println(list);
        XmlUtils.write("src\\day1212zy.day1209\\demo1.xml",list);
    }
}
